<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <!-- 语法不够清楚，不太语意化  键码 -->
    <input type="text" v-model="address" v-on:keyup.65="oneFn">

    <input type="text" v-model="address" v-on:keyup.a="oneFn">
  </div>

  <script src="./vue.js"></script>

  <script>
    // 自定义 按键修饰符
    Vue.config.keyCodes.a = 65

    const vm = new Vue({
      el: '#app',
      data: {
        address: ''
      },
      methods: {
        oneFn: function(e) {
          console.log(e.keyCode)
        }
      }
    })
  </script>
</body>
</html>